package week10;

import java.util.Arrays;
import java.util.Scanner;

public class week102 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            String s = in.next();
            try{
                int t = Integer.parseInt(s);
                a[i] = t;
            }catch (Exception e) {
                System.out.println(e.toString());
                i--;
                continue;
            }
        }
        System.out.println(Arrays.toString(a));
    }
}
